package com.neusoft.neu.his.myhis;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.stage.Stage;

/**
 * HisApplication HIS
 *
 * @author Administrator
 * @version 2024/06/07 08:39
 **/
public class HisApplication2 extends Application {
//    @Override
//    public void start1(Stage primaryStage) throws Exception {
//        primaryStage.setTitle("Hello！");
//        primaryStage.show();
//        Doctor doctor = new Doctor();
//        doctor.setId(2);
//        System.out.println(doctor.toString());
//        ObjectMapper objectMapper =new ObjectMapper();
//
//        String json = objectMapper.writeValueAsString(doctor);
//        System.out.println(json);
//    }
    public static void main(String[] args) {
        launch(args);
    }

    @Override
    public void start(Stage primaryStage) throws Exception {
        FXMLLoader fxmlLoader = new FXMLLoader(HisApplication2.class.getResource("sample.fxml") );
        Scene scene =new Scene(  fxmlLoader.load(),800,500 );
        primaryStage.setScene(scene);
        primaryStage.show();
    }
}